package com.kmu.kmucampus.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.kmu.kmucampus.KApplication;

import mytest.ssw.www.core.AppAction;

/**
 * Created by 73409 on 2015/11/3.
 */
public class KBaseActivity extends FragmentActivity {
    // 上下文实例
    public Context context;
    // 应用全局的实例
    public KApplication kapplication;
    // 核心层的Action实例
    public AppAction appAction;
    final  String TB_DEPT="TB_DEPT";
    final String TB_STU="TB_STU";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //将appAction放入Application中
        kapplication = (KApplication) this.getApplication();
        appAction = kapplication.getAppAction();
    }
   /* @Override
    public void onSaveInstanceState(Bundle outState) {}
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        return super.onCreateOptionsMenu(menu);
    }*/
}


/*

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }*/
